<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>精准数据报表下载</title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript" src="http://pic2.58.com/n/tuan/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../javascript/My97DatePicker/WdatePicker.js"></script>
<script >
	
	function dateCheck(startDate,endDate){
		var startYear = startDate.substring(0,startDate.indexOf("-"));
		var endYear = endDate.substring(0,endDate.indexOf("-"));
		if(startYear == endYear){
			return true;
		}else{
			alert("查询时间范围不可跨年！");
			return false;
		}
	}


	$(function(){$("#totalitydata").click(function(){
			var startDate = $("#startDate_all").val();
			var endDate = $("#endDate_all").val();
			if(dateCheck(startDate,endDate)){
				document.totalitydataform.submit();
			}
		});
	});
	
	$(function(){$("#detaildata").click(function(){
			var startDate = $("#startDate_detail").val();
			var endDate = $("#endDate_detail").val();
			if(dateCheck(startDate,endDate)){
				document.detaildataform.submit();
			}
			
		});
	});
	
	$(function(){$("#yebddata").click(function(){
			var startDate = $("#startDate_ye").val();
			var endDate = $("#endDate_ye").val();
			if(dateCheck(startDate,endDate)){
				document.yebddataform.submit();
			}
		});
	});
	
	$(function(){$("#pcdetail").click(function(){
			document.pcdetailform.submit();
		});
	});
	
	$(function(){$("#pfcdetail").click(function(){
			document.pfcdetailform.submit();
		});
	});
	
	$(function(){$("#citydata").click(function(){
			var startDate = $("#startDate_city").val();
			var endDate = $("#endDate_city").val();
			if(dateCheck(startDate,endDate)){
				document.citydataform.submit();
			}
		});
	});
	
	
</script>
<div class="lr_both">
<div class="right_conts">
  <div class="mg_tt">
    <div class="right_search">
      <div class="rs_title_bg">
        <h2 class="rs_title">精准数据报表下载</h2>
      </div>
	  </br>
    </div>
    <div class="table_div">

      <table class="sj_tl sj_tl_2" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th align="center" colspan="3">精准数据报表下载</th>
        </tr>
		<tr style="background:#ffd9b5;">
           <td align="center">报表类型</td>
		   <td align="center">条件筛选</td>
		   <td align="center">操作</td>
        </tr>
		<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
		<form id="totalitydataform" name="totalitydataform" action="/precision/totalitydata" method="post" >
           <td align="center" >总体数据</td>
		   <td align="center" >
			<input type="hidden" id="type" name="type" value="1"/>
			起始:&nbsp;<input  type="text" id="startDate_all" style="width:120px" name="startDate_all" class="Wdate" value="$!{startDate_all}" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
    		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			结束:&nbsp;<input  type="text" id="endDate_all" style="width:120px" name="endDate_all" class="Wdate" value="$!{endDate_all}"   onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
		    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 分公司:&nbsp;	
                      <select size="1"  name="company_name_all" id="company_name_all">
						<option value="all" #if (${company_name_all}=="all") selected #end>全部</option>
						<option value="nbj" #if (${company_name_all}=="nbj") selected #end>非北京</option>
						<option value="ftcitys" #if (${company_name_all}=="ftcitys") selected #end>非代理商</option>
            			 #if ($bcList)        		
            				#foreach($bc in $bcList)
								<option value="${bc}" #if (${company_name_all}==${bc}) selected #end>${bc}</option>
            				#end
    					 #end
                       </select>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			
			产品类别:&nbsp;
                 <select size="1"  name="product_type_all" id="product_type_all">
					<option value="" #if (""== $product_type_all) selected #end >全部</option>
					<option value="黄页" #if ("黄页"== $product_type_all) selected #end >黄页</option>
					<option value="招聘" #if ("招聘"== $product_type_all) selected #end >招聘</option>
                 </select>			 
		   </td>
		   <td align="center" >
				<input type="button" name="totalitydata" id="totalitydata" value="下载" />
		   </td>
	   </form>
        </tr>
		
		<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
		<form id="detaildataform" name="detaildataform" action="/precision/detaildata" method="post" >
           <td align="center" >竞价成功明细</td>
		   <td align="center" >
			<input type="hidden" id="type" name="type" value="1"/>
			起始:&nbsp;<input  type="text" id="startDate_detail" style="width:120px" name="startDate_detail" class="Wdate" value="$!{startDate_detail}" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
    		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			结束:&nbsp;<input  type="text" id="endDate_detail" style="width:120px" name="endDate_detail" class="Wdate" value="$!{endDate_detail}"   onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
		    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 分公司:&nbsp;	
                      <select size="1"  name="company_name_detail" id="company_name_detail">
						<option value="all" #if (${company_name_detail}=="all") selected #end>全部</option>
						<option value="nbj" #if (${company_name_detail}=="nbj") selected #end>非北京</option>
						<option value="ftcitys" #if (${company_name_detail}=="ftcitys") selected #end>非代理商</option>
						#if ($bcList)        		
            				#foreach($bc in $bcList)
								<option value="${bc}" #if (${company_name_all}==${bc}) selected #end>${bc}</option>
            				#end
    					 #end
                       </select>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			
			产品类别:&nbsp;
                 <select size="1"  name="product_type_detail" id="product_type_detail">
					<option value="" #if (""== $product_type_detail) selected #end >全部</option>
					<option value="黄页" #if ("黄页"== $product_type_detail) selected #end >黄页</option>
					<option value="招聘" #if ("招聘"== $product_type_detail) selected #end >招聘</option>
                 </select>	
		   </td>
		   <td align="center" >
				<input type="button" name="detaildata" id="detaildata" value="下载" />
		   </td>
	   </form>
	   
        </tr>
		
		<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
		<form id="yebddataform" name="yebddataform" action="/precision/yebddata" method="post" >
           <td align="center" >推广余额账户变动</td>
		   <td align="center" >
			<input type="hidden" id="type" name="type" value="1"/>
			起始:&nbsp;<input  type="text" id="startDate_ye" style="width:120px" name="startDate_ye" class="Wdate" value="$!{startDate_ye}" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
    		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			结束:&nbsp;<input  type="text" id="endDate_ye" style="width:120px" name="endDate_ye" class="Wdate" value="$!{endDate_ye}"   onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
		    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 分公司:&nbsp;	
                      <select size="1"  name="company_name_ye" id="company_name_ye">
						<option value="all" #if (${company_name_detail}=="all") selected #end>全部</option>
						<option value="nbj" #if (${company_name_detail}=="nbj") selected #end>非北京</option>
						<option value="ftcitys" #if (${company_name_detail}=="ftcitys") selected #end>非代理商</option>
						#if ($bcList)        		
            				#foreach($bc in $bcList)
								<option value="${bc}" #if (${company_name_all}==${bc}) selected #end>${bc}</option>
            				#end
    					 #end
                       </select>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			
			产品类别:&nbsp;
                 <select size="1"  name="product_type_ye" id="product_type_ye">
					<option value="" #if (""== $product_type_ye) selected #end >全部</option>
					<option value="黄页" #if ("黄页"== $product_type_ye) selected #end >黄页</option>
					<option value="招聘" #if ("招聘"== $product_type_ye) selected #end >招聘</option>
                 </select>			   
		   </td>
		   <td align="center" >
				<input type="button" name="yebddata" id="yebddata" value="下载" />
		   </td>
	   </form>
        </tr>
		
		<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
		<form id="citydataform" name="citydataform" action="/precision/citydata" method="post" >
           <td align="center" >城市数据</td>
		   <td align="center" >
			<input type="hidden" id="type" name="type" value="1"/>
			起始:&nbsp;<input  type="text" id="startDate_city" style="width:120px" name="startDate_city" class="Wdate" value="$!{startDate_city}" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
    		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			结束:&nbsp;<input  type="text" id="endDate_city" style="width:120px" name="endDate_city" class="Wdate" value="$!{endDate_city}"   onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
		    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 分公司:&nbsp;	
                      <select size="1"  name="company_name_city" id="company_name_city">
						<option value="all" #if (${company_name_detail}=="all") selected #end>全部</option>
						<option value="nbj" #if (${company_name_detail}=="nbj") selected #end>非北京</option>
						<option value="ftcitys" #if (${company_name_detail}=="ftcitys") selected #end>非代理商</option>
						#if ($bcList)        		
            				#foreach($bc in $bcList)
								<option value="${bc}" #if (${company_name_all}==${bc}) selected #end>${bc}</option>
            				#end
    					 #end
                       </select>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			
			产品类别:&nbsp;
                 <select size="1"  name="product_type_city" id="product_type_city">
					<option value="" #if (""== $product_type_city) selected #end >全部</option>
					<option value="黄页" #if ("黄页"== $product_type_city) selected #end >黄页</option>
					<option value="招聘" #if ("招聘"== $product_type_city) selected #end >招聘</option>
                 </select>		
		   </td>
		   <td align="center" >
				<input type="button" name="citydata" id="citydata" value="下载" />
		   </td>
	   </form>
        </tr>
		
		<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
		<form id="pcdetailform" name="pcdetailform" action="/precision/pcdetail" method="post" >
           <td align="center" >潜在客户明细数据</td>
		   <td align="center" >
			<input type="hidden" id="type" name="type" value="1"/>
			日期:&nbsp;<input  type="text" id="date_pc" style="width:120px" name="date_pc" class="Wdate" value="$!{date_pc}" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
    		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 分公司:&nbsp;	
                      <select size="1"  name="company_name_pc" id="company_name_pc">
						<option value="all" #if (${company_name_detail}=="all") selected #end>全部</option>
						<option value="nbj" #if (${company_name_detail}=="nbj") selected #end>非北京</option>
						<option value="ftcitys" #if (${company_name_detail}=="ftcitys") selected #end>非代理商</option>
						#if ($bcList)        		
            				#foreach($bc in $bcList)
								<option value="${bc}" #if (${company_name_all}==${bc}) selected #end>${bc}</option>
            				#end
    					 #end
                       </select>
					   
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			
			产品类别:&nbsp;
                 <select size="1"  name="product_type_pc" id="product_type_pc">
					<option value="黄页" #if ("黄页"== $product_type_pc) selected #end >黄页</option>
					<option value="招聘" #if ("招聘"== $product_type_pc) selected #end >招聘</option>
                 </select>	
		   </td>
		   <td align="center" >
				<input type="button" name="pcdetail" id="pcdetail" value="下载" />
		   </td>
	   </form>
		</tr>
		
		<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
		<form id="pfcdetailform" name="pfcdetailform" action="/precision/pfcdetail" method="post" >
           <td align="center" >竞价失败客户明细</td>
		   <td align="center" >
			<input type="hidden" id="type" name="type" value="1"/>
			日期:&nbsp;<input  type="text" id="date_pfc" style="width:120px" name="date_pfc" class="Wdate" value="$!{date_pfc}" onclick="WdatePicker({skin:'ext',dateFmt:'yyyy-MM-dd'})"/>
    		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 分公司:&nbsp;	
                      <select size="1"  name="company_name_pfc" id="company_name_pfc">
						<option value="all" #if (${company_name_detail}=="all") selected #end>全部</option>
						<option value="nbj" #if (${company_name_detail}=="nbj") selected #end>非北京</option>
						<option value="ftcitys" #if (${company_name_detail}=="ftcitys") selected #end>非代理商</option>
						#if ($bcList)        		
            				#foreach($bc in $bcList)
								<option value="${bc}" #if (${company_name_all}==${bc}) selected #end>${bc}</option>
            				#end
    					 #end
                       </select>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			
			产品类别:&nbsp;
                 <select size="1"  name="product_type_pfc" id="product_type_pfc">
					<option value="" #if (""== $product_type_pfc) selected #end >全部</option>
					<option value="黄页" #if ("黄页"== $product_type_pfc) selected #end >黄页</option>
					<option value="招聘" #if ("招聘"== $product_type_pfc) selected #end >招聘</option>
                 </select>	
		   </td>
		   <td align="center" >
				<input type="button" name="pfcdetail" id="pfcdetail" value="下载" />
		   </td>
	   </form>
        </tr>
		
      </table>
    </div>


  </div>

</div>
</div>
</body>
</html>
